package com.osdp.sc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sc_role_position")
public class ScRolePosition implements Serializable {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 岗位id
     */
    private String positionId;

    /**
     * 角色id
     */
    private String roleId;

}

/**
 *
 CREATE TABLE `uc_position_role` (
 `id` varchar(32) NOT NULL COMMENT '主键',
 `position_id` varchar(32) NOT NULL COMMENT '岗位id',
 `role_id` varchar(32) NOT NULL COMMENT '角色id',
 PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='岗位角色表'
 */